# csv文件提取
import csv
import xlrd


def get_csv_data():
    list1 = []
    c1 = csv.reader(open(r"data\11.csv", encoding="utf-8"))
    for i in c1:
        list1.append(i)
    else:
        return list1


# print(get_csv_data())


def get_xls_data():
    xls = xlrd.open_workbook("data\\22.xlsx")
    sheet = xls.sheet_by_index(0)

    print(sheet.row_values(1))
    list1 = []
    for i in range(1, sheet.nrows):
        list1.append(sheet.row_values(i))
    else:
        return list1
